package org.example.medicalstaff.controller;

import org.example.his.common.utils.RedisUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/out_doctor")
public class TestController {

    @GetMapping("/abc")
    public String test(
            @RequestParam("time") String time
            ) {
        System.out.println("xxxxxxxxxxxx");
        System.out.println(time);
        return "ok";
    }

    @GetMapping("/redis")
    public String testRedis(){
        RedisUtil redisUtil = new RedisUtil();
        redisUtil.set("name","peiqi");
        String name = (String) redisUtil.get("name");
        return name;
    }

}
